﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace YJKOpeningCommon.DbOpening
{
	public abstract class DbCompositeOpening : DbFamilyOpening
	{
		public override string GetCutSize(bool bIsFeet)
		{
			string text = string.Empty;
			for (int i = 0; i < this.m_lstDbFamilyOpening.Count; i++)
			{
				text += this.m_lstDbFamilyOpening[i].GetCutSize(bIsFeet);
				if (i != this.m_lstDbFamilyOpening.Count - 1)
				{
					text += ";";
				}
			}
			return text;
		}

		public override string GetOpeningSize(bool bIsFeet)
		{
			return this.m_profile.GetOpeningSize(bIsFeet);
		}

		public virtual void GetCompositeOpeningData(List<XYZ> lstPt, Autodesk.Revit.DB.Document doc)
		{
		}

		public List<DbOpeningBase> m_lstDbFamilyOpening;
	}
}
